package com.shuai.user.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 接口参数表，描述接口与参数之间的关系
 *
 * @TableName interface_params
 */
@TableName(value = "interface_params")
@Data
public class InterfaceParams implements Serializable {
    /**
     * 接口参数数据ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 参数所属接口
     */
    @TableField(value = "interface_id")
    private Long interfaceId;

    /**
     * 参数名
     */
    @TableField(value = "param_name")
    private String paramName;

    /**
     * 参数类型
     */
    @TableField(value = "param_type")
    private String paramType;

    /**
     * 参数说明
     */
    @TableField(value = "param_desc")
    private String paramDesc;

    /**
     * 是否必填 1-必填;0-非必填
     */
    @TableField(value = "is_required")
    private Integer isRequired;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     *
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 请求参数/响应参数 0-请求参数；1-响应参数
     */
    @TableField(value = "param_order")
    private Integer paramOrder;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}